package com.xk857.pojo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * 红绿灯配置信息
 * @Author CV大魔王
 * @Date 2020.1.20
 */
@ApiModel("路口红绿灯配置")
@Data
public class TrafficLightConfiguration {

    @ApiModelProperty("红绿灯id 1-3号")
    private Integer trafficLightId;

    @ApiModelProperty("红灯时长")
    private Integer redTime;

    @ApiModelProperty("绿灯时长")
    private Integer greenTime;

    @ApiModelProperty("黄灯时长")
    private Integer yellowTime;

    public TrafficLightConfiguration() {
    }

    public TrafficLightConfiguration(Integer trafficLightId, Integer redTime, Integer greenTime, Integer yellowTime) {
        this.trafficLightId = trafficLightId;
        this.redTime = redTime;
        this.greenTime = greenTime;
        this.yellowTime = yellowTime;
    }
}
